package com.ruoyi.project.system.domain;

import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 报警记录对象 sys_alarm
 *
 * @author jjp
 * @date 2020-03-30
 */
public class SysAlarm extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long alarmId;

    /** 设备id */
    private Long postId;

    /** 巡查类型 */
    @ApiModelProperty("异常类型")
    private String alarmType;

    /**
     * 消息状态
     */
    @ApiModelProperty("消息状态")
    private String read;

    private String postName;
    private String lng;
    private String lat;
    private String address;
    private String url;



    public void setAlarmId(Long alarmId)
    {
        this.alarmId = alarmId;
    }

    public Long getAlarmId()
    {
        return alarmId;
    }
    public void setPostId(Long postId)
    {
        this.postId = postId;
    }

    public Long getPostId()
    {
        return postId;
    }
    public void setAlarmType(String alarmType)
    {
        this.alarmType = alarmType;
    }

    public String getAlarmType()
    {
        return alarmType;
    }

    public String getRead() {
        return read;
    }

    public void setRead(String read) {
        this.read = read;
    }


    public String getPostName() {
        return postName;
    }

    public void setPostName(String postName) {
        this.postName = postName;
    }

    public String getLng() {
        return lng;
    }

    public void setLng(String lng) {
        this.lng = lng;
    }

    public String getLat() {
        return lat;
    }

    public void setLat(String lat) {
        this.lat = lat;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Override
    public String toString() {
        return "SysAlarm{" +
                "alarmId=" + alarmId +
                ", postId=" + postId +
                ", alarmType='" + alarmType + '\'' +
                ", read='" + read + '\'' +
                ", postName='" + postName + '\'' +
                ", lng='" + lng + '\'' +
                ", lat='" + lat + '\'' +
                ", address='" + address + '\'' +
                ", url='" + url + '\'' +
                '}';
    }
}
